package com.smartens.boit.util

import com.smartens.boit.bean.TimeUpdateBean


open class CustomTimeDialog : DialogTime() {

    var timeUpdateBean: TimeUpdateBean? = null

    override fun initPickerViewData() {
        super.initPickerViewData()
        timeUpdateBean?.let {
            it.startHour.apply {
                startHours?.setSelected(this)
                firstSelected = this
            }
            it.startMin.apply {
                startMin?.setSelected(this)
                secondSelected = this
            }
            it.endHour.apply {
                endHours?.setSelected(this)
                thirdSelected = this
            }
            it.endMin.apply {
                endMin?.setSelected(this)
                forthSelected = this
            }
        }
    }


}


